Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

restructure all StorageApi methods to have 1 arg #400

Merged
merged 3 commits into from
Jan 15, 2023

Conversation

SergNikitin
Copy link
Collaborator

Next step after #396 is to create an implementation of StorageApi which sends messages from truthsayer to read/write data to archaeologist's storage, similar to how it was showcased in #387. To do this, inputs and outputs of all StorageApi have to be put into a message object, read on the receiving end etc. Writing this messaging code becomes much easier if every API has a signature which follows same structure.

This PR changes all signatures to have the structure of "all input values are stored in 1 arg value, with an optional second AbortSignal arg"

Copy link
Contributor

@akindyakov akindyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's pretty 🤩 💅

@SergNikitin SergNikitin merged commit 4645c81 into main Jan 15, 2023
@SergNikitin SergNikitin deleted the normalise-storage-api-signatures branch January 15, 2023 10:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants